import Mock from "mockjs";
import homeApi from './mockServeData/home'
import user from './mockServeData/user'
import permission from './mockServeData/permission'
// 定义mock请求拦截
Mock.mock('/api/home/getData',homeApi.getStatistcalData)

Mock.mock('/api/user/add','post',user.createUser)
Mock.mock('/api/user/edit','post',user.updateUser)
Mock.mock('/api/user/del','post',user.deleteUser)
Mock.mock(/api\/user\/getUser/,'get',user.getUserList)    //正则内外不用引号
Mock.mock(/api\/permission\/getMenu/,'post',permission.getMenu)